package com.jike.jkgame.network;

public class ServerConfig {
	
	public static final String APP_ID = "cf-g-g1";
	
	private static final String LOGIN_SERVER = "http://10.1.1.134:9080/loginserver";
	
	private static ServerConfig mInstanse;
	
	private String mGameServer = "http://10.1.1.134:9180/gameserver";
	private String mIMServer;
	
	/**
	 * 获得Login server地址，此地址应该是静态的
	 * @return 
	 */
	public static String getStaticLoginServer() {
		return LOGIN_SERVER;
	}
	
	private ServerConfig(){}
	
	public String getGameServer() {
		return mGameServer;
	}

	public void setGameServer(String gameServer) {
		this.mGameServer = gameServer;
	}

	public String getIMServer() {
		return mIMServer;
	}

	public void setIMServer(String imSercer) {
		this.mIMServer = imSercer;
	}

	public void configServer(String gameServer, String imServer) {
		this.mGameServer = gameServer;
		this.mIMServer = imServer;
	}
	
	public static ServerConfig get() {
		if (mInstanse == null) {
			mInstanse = new ServerConfig();
		}
		return mInstanse;
	}
	
}
